package com.atguigu.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * @author :hucaiyuan
 * @date :2022/02/01   18:04
 * @description :
 */
public class CustomerBlockHandler {
    public static CommonResult handleException(BlockException exception){
        return new CommonResult(444,"按客户自定义,gloabal handlerException-->1");
    }

    public static CommonResult handleException2(BlockException exception){
        return new CommonResult(444,"按客户自定义,gloabal handlerException-->2");
    }
}
